#ifndef PLAYLISTSELECTIONDIALOG_H
#define PLAYLISTSELECTIONDIALOG_H

#include "button.h"
#include "keycontrollablemenu.h"
#include <Maestro/database.h>
#include <Maestro/mcplugins.h>
#include <QDialog>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QLabel>
#include <QLineEdit>
#include <QListWidget>

class PlaylistSelectionDialog : public KeyControllableMenu {
    Q_OBJECT
public:
    PlaylistSelectionDialog(QWidget * parent=0);
    void show();
    void closeEvent(QCloseEvent *event);

signals:
    void closed(QString *);

public slots:
    void okSelected();
    void cancelSelected();
    void createPlaylist();
    void focusCreatePlaylistLineEdit(QWidget *, QWidget *);

private:
    Button * okButton;
    Button * cancelButton;
    QLineEdit * createPlaylistLineEdit;
    QListWidget * playlistsListWidget;
    QString * chosenPlaylist;

};

#endif // PLAYLISTSELECTIONDIALOG_H
